﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CuserTree.aspx.cs" Inherits="ZLDC.Estate.TM.CuserTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>部门列表</title>
    <link href="../js/jquery/style/jquery.simple.tree.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery/jquery.simple.tree.js" type="text/javascript"></script>

    <script type='text/javascript'>
        var simpleTreeCollection;
        $(document).ready(function() {
            simpleTreeCollection = $('.simpleTree').simpleTree({
                autoclose: false,
                drag: false,
                afterClick: function(node) {
                    //alert('text-'+$('span:first',node).text());
                },
                afterDblClick: function(node) {
                    //alert('text-'+$('span:first',node).text());
                },
                afterMove: function(destination, source, pos) {
                    //alert('destination-'+destination.attr('id')+' source-'+source.attr('id')+' pos-'+pos);
                },
                afterAjax: function() {
                    //alert('Loaded');
                },
                animate: false
                //,docToFolderConvert:true
            });
            jt('', 0);
        });
        function jt(dpid, dpname) {
            window.parent.frames["userlist"].location.href = 'CuserList.aspx?tid=' + dpid;
            return false;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 300px;">
        <%=sDeptTree%>
    </div>
    <asp:LinkButton ID="lbtRefresh" runat="server" Text="刷 新" OnClick="lbtRefreshRefresh_Click"></asp:LinkButton>
    </form>
</body>
</html>
